package com.dms.modules.product.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.math.BigDecimal;

@Data
@ApiModel(value = "商品规格DTO", description = "商品规格数据传输对象")
public class ProductSpecificationDTO {

    @NotBlank(message = "规格名称不能为空")
    @ApiModelProperty("规格名称")
    private String name;

    @ApiModelProperty("规格值")
    private String value;

    @ApiModelProperty("规格价格")
    private BigDecimal price;

    @ApiModelProperty("规格库存")
    private Integer stock;
} 